﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace JEdwonTune.Lib.Crud {
    public class Ctrls {
        public static IList<KeyValuePair<String, String>> GetDataTypeItems() { 
            IList<KeyValuePair<String, String>> list = new List<KeyValuePair<String, String>>();
            list.Add(new KeyValuePair<string, string>("text", "单行文本:text"));
            list.Add(new KeyValuePair<string, string>("mtext", "多行文本:textarea"));
            list.Add(new KeyValuePair<string, string>("select", "下拉列表:select"));
            list.Add(new KeyValuePair<string, string>("boolean", "单选框:radio button"));
            list.Add(new KeyValuePair<string, string>("datatime", "日期选择:text"));
            return list;
        }
        public static IList<KeyValuePair<String, String>> GetPropertyOrderItems() {
            IList<KeyValuePair<String, String>> list = new List<KeyValuePair<String, String>>();
            list.Add(new KeyValuePair<string, string>("", "不参与排序"));
            list.Add(new KeyValuePair<string, string>("asc", "正序"));
            list.Add(new KeyValuePair<string, string>("desc", "逆序"));
            return list;
        }
   
    }
}
